package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.OrderStatisticsMapper;
import com.ruoyi.system.domain.OrderStatistics;
import com.ruoyi.system.service.IOrderStatisticsService;

/**
 * 订单统计Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-08
 */
@Service
public class OrderStatisticsServiceImpl implements IOrderStatisticsService 
{
    @Autowired
    private OrderStatisticsMapper orderStatisticsMapper;

    /**
     * 查询订单统计列表
     * 
     * @param orderStatistics 订单统计
     * @return 订单统计
     */
    @Override
    public List<OrderStatistics> selectOrderStatisticsList(OrderStatistics orderStatistics)
    {
        return orderStatisticsMapper.selectOrderStatisticsList(orderStatistics);
    }

    /**
     * 查询订单统计汇总数据
     * 
     * @param orderStatistics 订单统计
     * @return 订单统计汇总
     */
    @Override
    public OrderStatistics selectOrderStatisticsSummary(OrderStatistics orderStatistics)
    {
        return orderStatisticsMapper.selectOrderStatisticsSummary(orderStatistics);
    }
}
